package org.JQbitorrentClinet.impl.V283;

import org.JQbitorrentClinet.QBitorrentConnectionInfo;
import org.JQbitorrentClinet.base.BaseProxy;
import org.JQbitorrentClinet.interfaces.LogProxy;
import org.JQbitorrentClinet.pojo.log.LogRecord;
import org.JQbitorrentClinet.pojo.log.PeerLogRecord;
import org.JQbitorrentClinet.request.log.GetLogParam;
import org.JQbitorrentClinet.request.log.GetPeerLogParam;

import java.util.List;

public class LogProxy_V2_8_3 extends BaseProxy implements LogProxy {

    public LogProxy_V2_8_3(QBitorrentConnectionInfo connectionInfo) {
        super(connectionInfo);
    }

    @Override
    public List<LogRecord> getLog(GetLogParam getLogParam) {
        login();
        return process(getLogParam);
    }

    @Override
    public List<PeerLogRecord> getPeerLog(GetPeerLogParam getLogParam) {
        login();
        return process(getLogParam);
    }
}
